Xbasic

FTP_GET_NLIST Function

Syntax

File_List as C = FTP_GET_NLIST(C address, C user, C password [,C path])

Arguments

addressCharacter

The FTP address of the transmission.

userCharacter

The user's identity.

passwordCharacter

The user's password.

pathCharacter

Default = "". The directory of the Address and the specification for the file types to retrieve.

Returns

File_ListCharacter

Returns a list of files located in the specified directory.

Description

The FTP_GET_NLIST() function returns a list of files in a directory, i.e. retrieves a directory listing from a FTP server

Example

dim fl as C
fl = FTP_GET_NLIST("www.alphasoftware.com", "username", "password", "learningcenter.asp")
? fl 
= A1BookingScreen.jpg
A1ControlCentre.jpg
A1Invoice.jpg
Action_Script_ADO_ODBC_Data.jpg
Action_Script_View_Xbasic.jpg
...

See Also